package com.zr.shortlink.admin.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zr.shortlink.admin.common.database.BaseDO;
import com.zr.shortlink.admin.serializer.PhoneDesensitizationSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_user")
public class UserDo extends BaseDO {
    private Long id;                // ID
    private String username;        // 用户名
    private String password;        // 密码
    private String realName;
    @JsonSerialize(using = PhoneDesensitizationSerializer.class)// 真实姓名
    private String phone;           // 手机号
    private String mail;            // 邮箱
    private Long deletionTime;



}
